﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="DisplayUserProfile.aspx.cs" Inherits="CodeDemon.Views.User.DisplayUserProfile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">

<% var user = (from users in ViewData.Model.DAO.GetUserByUserID(ViewData.Model.CurrentReviewUserID) select users).FirstOrDefault(); %>

<form action="/CodeDemon/User/UpdateUserProfile" action="POST">
<h2>Update Your User Profile</h2>
<table>
    <tr><td>Enable Mail on Create</td><td><input type="checkbox" name="create" value="True" <% if( user.EnableCreateMail == true ) { %>checked="checked"<% } %> /></td></tr>
    <tr><td>Enable Mail on Status Change</td><td><input type="checkbox" name="status" value="True" <% if( user.EnableDeltaStatusMail == true) { %>checked="checked"<% } %>/></td></tr>
    <tr><td>Enable Mail on Comments</td><td><input type="checkbox" name="comment" value="True" <% if( user.EnableCommentMail == true) { %>checked="checked"<% } %>/></td></tr>
    <tr><td>Enable Mail on Join Review</td><td><input type="checkbox" name="join" value="True" <% if( user.EnableJoinMail== true ) { %>checked="checked"<% } %>/></td></tr>
    <tr><td>Enable Mail on Other Joins</td><td><input type="checkbox" name="other_join" value="True" <% if( user.EnableOtherReviewersMail== true ) { %>checked="checked"<% } %>/></td></tr>
</table>
<input type="submit" value="Save Changes" />
</form>



</asp:Content>
